import QtQuick 2.0

Page2Form {
    sliderOpacity.onValueChanged: {
        console.log("slider Opacity = " + sliderOpacity.value)
        myIterator.sigMyOpacity(sliderOpacity.value)
    }
    spinBoxMyDouble.onValueChanged: {
        //set value to MyDouble
        myIterator.MyDouble = spinBoxMyDouble.value;
        console.log("Set myIterator.MyDouble = " + myIterator.MyDouble)
    }
    spinBoxMyInt.onValueChanged: {
        //set value to MyInt
        myIterator.MyInt = spinBoxMyInt.value;
        console.log("Set myIterator.MyInt = " + myIterator.MyInt)
    }

    // action for Get
    buttonGet.onClicked: {
        // get value from c++
        var a = myIterator.MyDouble;
        console.log("get value : " + a);
        textEditGet.text = a;
    }


}


